package com.example.test.threadtest;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

public class Collections {


    //构建线程安全集合方法
    public void threadSafeList(){
        List<ArrayList> objects = java.util.Collections.synchronizedList(new ArrayList<>());


        ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();

    }


}
